#include "BSTress.h"

int main()
{
    BSTree<int> t;
    int a[] = {8, 3, 1, 10, 6, 4, 7, 14, 13, 4, 4, 5};
    for(int x : a) t.InsertR(x);
    t.Inorder();

    int b[] = {8, 3, 1, 10, 6, 4, 7, 14, 13, 5};
    for (auto x : b)
	{
		t.Erase(x);
		t.Inorder();
	}
}